package com.hrt.bean;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/***********************************************************************
 * Module: Resources.java Author: Administrator Purpose: Defines the Class
 * Resources
 ***********************************************************************/
@Entity
@Table(name = "RESOURCE")
public class Resources implements Serializable {

	/**
	 * 产品/礼品资源表,存放产品/礼品相关各种资源，视频，图片等链接
	 * 
	 * @pdOid 60fc657b-67a5-4ab9-8e0d-9000b8de4644
	 */

	/**
	 * 资源主键ID
	 * 
	 * @pdOid acdcfbd0-ebf7-4a27-9708-a1f02d9d7694
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "RES_ID")
	private Long id;
	/**
	 * 资源编号
	 * 
	 * @pdOid ddea47ea-e1b6-4f6f-b9df-690da6b3d0f2
	 */
	@Column(name="RES_CODE",nullable=false)
	private java.lang.String resCode;
	/**
	 * 资源名称
	 * 
	 * @pdOid 3bbe60e0-76f1-49b4-b415-c536a6d3ea47
	 */
	@Column(name="RES_NAME",nullable=false)
	private java.lang.String resName;
	/**
	 * 资源类型,0图片，1视频，2文本等
	 * 
	 * @pdOid 7b89e8b5-ff4d-4626-a769-ca3ef20fe69b
	 */
	@Column(name="RES_TYPE",nullable=false)
	private Integer resType;
	/**
	 * 资源路径
	 * 
	 * @pdOid 848181e6-428d-44bb-ae92-afc9c0d089d3
	 */
	@Column(name="URL",nullable=false)
	private java.lang.String url;
	/**
	 * 产品礼品名称,冗余字段
	 * 
	 * @pdOid 563e7fa4-5444-43fd-a3bf-cac4871ce0a6
	 */
	@Column(name="NAME",nullable=false)
	private java.lang.String name;
	/**
	 * 描述该资源归属对象是产品还是礼品，1产品，2礼品
	 * 
	 * @pdOid 5292a45a-3650-48ca-9362-51e25824fa20
	 */
	@Column(name="ISGIFT",nullable=false)
	private Integer isgift=1;
	/**
	 * 资源备注
	 * 
	 * @pdOid 18b9608f-66ae-468d-b027-fb467f5bd3a0
	 */
	@Column(name="NOTE",nullable=true)
	private java.lang.String note;
	/**
	 * 删除标记
	 * 
	 * @pdOid c574d943-81a3-431a-a3b5-59e13d88fab5
	 */
	@Column(name="ISDELETE",nullable=false)
	private Integer isdelete = 0;
	
	/**
	 * 
	 */
	@Column(name="proId",nullable=false)
	private Long proId;
	
	
	private String tableName;

	public Long getProId() {
		return proId;
	}

	public void setProId(Long proId) {
		this.proId = proId;
	}

	/** @pdOid 8a76c601-8887-4eaa-b98b-784eb50ebc4e */
	public Long getId() {
		return id;
	}

	/**
	 * @param newId
	 * @pdOid e2a5f43c-53c4-4e88-b759-3c455959a442
	 */
	public void setId(Long newId) {
		id = newId;
	}

	/** @pdOid 0226e6be-7593-49f8-83c5-d6bec797a22d */
	public java.lang.String getResCode() {
		return resCode;
	}

	/**
	 * @param newResCode
	 * @pdOid a758dd43-a74a-403a-90c6-af9314762a57
	 */
	public void setResCode(java.lang.String newResCode) {
		resCode = newResCode;
	}

	/** @pdOid b8c563bc-fe37-4e24-a64d-a76cdd0530da */
	public java.lang.String getResName() {
		return resName;
	}

	/**
	 * @param newResName
	 * @pdOid ed29f74c-32ce-4654-b252-f8ac7ad3155d
	 */
	public void setResName(java.lang.String newResName) {
		resName = newResName;
	}

	/** @pdOid 47fe7314-ef6a-4264-aa67-778666902007 */
	public Integer getResType() {
		return resType;
	}

	/**
	 * @param newResType
	 * @pdOid e727e90c-53bd-4dc2-ae79-79ffc9df1f60
	 */
	public void setResType(Integer newResType) {
		resType = newResType;
	}

	/** @pdOid ba18db11-c938-4216-a5f1-e2fa183d51b2 */
	public java.lang.String getUrl() {
		return url;
	}

	/**
	 * @param newUrl
	 * @pdOid 7b649954-73fe-4bc6-88a6-debf71def885
	 */
	public void setUrl(java.lang.String newUrl) {
		url = newUrl;
	}

	/** @pdOid 0abadbb6-0188-40ee-b121-c76333c30e41 */
	public java.lang.String getName() {
		return name;
	}

	/**
	 * @param newName
	 * @pdOid 83b19e1c-e108-4d2d-82bd-4321456c900b
	 */
	public void setName(java.lang.String newName) {
		name = newName;
	}

	/** @pdOid 755a8949-5f42-4041-8c9e-844c63c60f0c */
	public Integer getIsgift() {
		return isgift;
	}

	/**
	 * @param newIsgift
	 * @pdOid e03ef41c-9514-4c23-913b-3f005eb57761
	 */
	public void setIsgift(Integer newIsgift) {
		isgift = newIsgift;
	}

	/** @pdOid 5b24447c-d1a8-4c6c-b331-363c57ad2ad8 */
	public java.lang.String getNote() {
		return note;
	}

	/**
	 * @param newNote
	 * @pdOid 47c18743-6375-4db2-b0d5-06e91bb1169c
	 */
	public void setNote(java.lang.String newNote) {
		note = newNote;
	}

	/** @pdOid 424249e2-6226-49e4-bc3e-da79c13e9b5d */
	public Integer getIsdelete() {
		return isdelete;
	}

	/**
	 * @param newIsdelete
	 * @pdOid c6542cc8-9958-45e6-bf39-3780a17c009c
	 */
	public void setIsdelete(Integer newIsdelete) {
		isdelete = newIsdelete;
	}

}
